	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_gfx_maingraphics
	extrn	_bbNullObject
	extrn	_bbObjectNew
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bb_Main_Graphics
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_graphics_Flip
	extrn	_brl_max2d_Cls
	public	__bb_main
	public	_bb_MainGFX
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_43],0
	je	_44
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_44:
	mov	dword [_43],1
	push	ebp
	push	_39
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_gfx_maingraphics
	push	_27
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_30]
	and	eax,1
	cmp	eax,0
	jne	_31
	push	_bb_Main_Graphics
	call	_bbObjectNew
	add	esp,4
	inc	dword [eax+4]
	mov	dword [_bb_MainGFX],eax
	or	dword [_30],1
_31:
	push	_32
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [_bb_MainGFX]
	cmp	ebx,_bbNullObject
	jne	_34
	call	_brl_blitz_NullObjectError
_34:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	_35
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
_24:
_22:
	push	ebp
	push	_38
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_36
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_max2d_Cls
	push	_37
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
	call	dword [_bbOnDebugLeaveScope]
	jmp	_24
	section	"data" data writeable align 8
	align	4
_43:
	dd	0
_40:
	db	"Engine",0
_41:
	db	"MainGFX",0
_42:
	db	":Main_Graphics",0
	align	4
_bb_MainGFX:
	dd	_bbNullObject
	align	4
_39:
	dd	1
	dd	_40
	dd	4
	dd	_41
	dd	_42
	dd	_bb_MainGFX
	dd	0
_28:
	db	"$BMXPATH/spaget/Engine.bmx",0
	align	4
_27:
	dd	_28
	dd	9
	dd	1
	align	4
_30:
	dd	0
	align	4
_32:
	dd	_28
	dd	11
	dd	1
	align	4
_35:
	dd	_28
	dd	21
	dd	1
	align	4
_38:
	dd	3
	dd	0
	dd	0
	align	4
_36:
	dd	_28
	dd	16
	dd	1
	align	4
_37:
	dd	_28
	dd	19
	dd	1
